﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Addmin/BackEnd/MTP_Admin.Master" CodeBehind="BC_DoanhThu.aspx.cs" Inherits="Bussiness.View.BackEnd.BC_DoanhThu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
                        <ext:Panel ID="Panel2" runat="server" Title="Danh sách sản phẩm trong kho" PaddingSummary="10px 5px 0 5px">
                            <Items>
                                       <ext:GridPanel ID="DSHangHoa_Grid" IDMode="Static" runat="server" Height="300" AutoScroll="true"
                                Region="Center">
                                <Store>
                                    <ext:Store ID="DSHangHoa_Store" runat="server" AutoDataBind="true" SkipIdForNewRecords="false">
                                        <Reader>
                                            <ext:JsonReader IDProperty="ID">
                                                <Fields>
                                                    <ext:RecordField Name="ID" Type="String" Mapping="ID" />
                                                    <ext:RecordField Name="Name" Type="String" Mapping="Name" />
                                                    <ext:RecordField Name="Code" Type="String" Mapping="Code" />
                                                    <ext:RecordField Name="PriceImport" Type="Int" Mapping="PriceImport" />
                                                    <ext:RecordField Name="PriceExprort" Type="Int" Mapping="PriceExprort" />
                                                    <ext:RecordField Name="Count" Type="String" Mapping="PriceExprort" />
                                                    <ext:RecordField Name="Description" Type="String" Mapping="Description" />
                                                    <ext:RecordField Name="DateImport" Type="Date" Mapping="DateImport" />
                                                </Fields>
                                            </ext:JsonReader>
                                        </Reader>
                                    </ext:Store>
                                </Store>
                                <ColumnModel ID="ColumnModel2" runat="server" AutoDataBind="true">
                                    <Columns>
                                        <ext:RowNumbererColumn />
                                        <ext:Column ColumnID="ID" Header="Mã" DataIndex="ID" Hidden="true" />
                                        <ext:Column Header="Mã hàng" DataIndex="Count" AutoDataBind="true" Width="70" MenuDisabled="True" />
                                         <ext:Column Header="Size" DataIndex="Description" AutoDataBind="true" Width="70" MenuDisabled="True" />
                                        <ext:Column Header="Tên" DataIndex="Name" AutoDataBind="true" Width="150" />
                                        <ext:Column Header="Số lượng" DataIndex="Name" AutoDataBind="true" Width="150" />
                                        <ext:NumberColumn Header="Gía nhập" DataIndex="PriceImport" AutoDataBind="true" MenuDisabled="True"
                                            Format="0,00" />
                                        <ext:NumberColumn Header="Gía bán" DataIndex="PriceExprort" AutoDataBind="true" MenuDisabled="True"
                                            Format="0,00" />
                                        <ext:DateColumn Header="Ngày cập nhật" DataIndex="DateImport" AutoDataBind="true"
                                            MenuDisabled="True" Format="dd/MM/yyyy" />
                                        <ext:CommandColumn Header="Action">
                                            <Commands>
                                                <ext:GridCommand Icon="Delete" CommandName="Delete" ToolTip-Text="Xóa" >
                                                </ext:GridCommand>
                                                <ext:CommandSeparator />
                                                <ext:GridCommand Icon="NoteEdit" CommandName="Edit" ToolTip-Text="Sửa/Xem" />
                                            </Commands>
                                        </ext:CommandColumn>
                                    </Columns>
                                </ColumnModel>
                                <BottomBar>
                                    <ext:PagingToolbar ID="PagingToolBar1" runat="server" PageSize="10" StoreID="DSHangHoa_Store"
                                        DisplayInfo="false" />
                                </BottomBar>
                                <SelectionModel>
                                    <ext:RowSelectionModel runat="server" ID="RowSelectionModel1">
                                    </ext:RowSelectionModel>
                                </SelectionModel>
                                <Listeners>
                                    <Command Handler="detail(command, record.data.ID)" />
                                    
                                    
                                </Listeners>
                            </ext:GridPanel>
                            </Items>

                        </ext:Panel>
                    

</asp:Content>